package com.xuecheng.content.domain.feignclient;

import com.xuecheng.content.domain.feignclient.fallback.SearchServiceClientFallbackFactory;
import com.xuecheng.content.domain.model.dto.CourseIndex;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-09-01  13:47
 */
@FeignClient(value = "search-service", fallbackFactory = SearchServiceClientFallbackFactory.class)
public interface SearchServiceClient {
    @PostMapping("/search/index/course")
    Boolean addIndex(@RequestBody CourseIndex courseIndex);

}
